<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
	<head>
		<title>Might Vs Magic</title>
		<link rel="stylesheet" type="text/css" href="./css/main.css" />
		<style>
		a {color: white}
		</style>
	</head>

	<body>
		<center><img src="./img/logo.jpg" width="80%"></center>
		<div id="content">
			<center>
				<div class="error"><s:actionerror/></div>
				<form action="register" method="post">
					<table>
					<tr>
				   		<td>Login</td>
				   		<td><input type="text" id="username" name="username" width="150"/></td>
				   	</tr> 
					<tr>
				   		<td>Hasło</td>
				   		<td><input type="password" id="password" name="password" width="150"/></td>
				   	</tr> 
					<tr>
				   		<td>Powtórz hasło</td>
				   		<td><input type="password" id="retypedPassword" name="retypedPassword" width="150"/></td>
				   	</tr> 
					<tr>
				   		<td>Klasa postaci</td>
				   		<td>
				   			<select name="userType" style="width:146px">
				   				<option value="KNIGHT">Rycerz</option>
				   				<option value="MAGE">Mag</option>
				   			</select>
				   		</td>
				   	</tr> 
					<tr>
				   		<td>E-mail</td>
				   		<td><input type="text" id="email" name="email" width="150"/></td>
				   	</tr> 
				   	<tr>
				   		<td>Zapoznałem się i akceptuję<br/> <a href="<s:url action='rulesPage.action'/>" target="_blank">Regulamin</a></td>
				   		<td><input type="checkbox" id="acceptRegulations" name="acceptRegulations" value="true"/></td>
				   	</tr> 
				   	<tr>
				   		<td colspan="2"><input type="submit" value="Zarejestruj"></td>
				   	</tr>
				    </table>
				</form>
			</center>
		</div> 
	</body>
</html>
